package nix.servlet;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class IServlet extends HttpServlet {

	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {

		response.setHeader("aaa", "AAA");

		response.addHeader("bbb", "B");
		response.addHeader("bbb", "BB");
		response.addHeader("bbb", "BBB");

		response.setIntHeader("Content-Type", 888);

		response.setDateHeader("expires", 1000 * 60 * 60 * 24);

		response.sendError(404, "您访问的资源存在，就是不给你！");
	}

}
